package com.douxg.fastCoding.db;

import com.douxg.fastCoding.randomData.*;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Description 数据库对应java的数据类型
 * @Auther douxg
 * @Date 2020/6/15 20:56
 */
@Getter
@AllArgsConstructor
public enum JavaDbDataType {
    STRING("String", "java.lang.String", new StringRandomData()),
    BOOLEAN("Boolean", "java.lang.Boolean", new StringRandomData()),
    SHORT("short", "java.lang.Short", new ShortRandomData()),
    BYTE("byte", "java.lang.Byte", new ByteRandomData()),
    INTEGER("Integer", "java.lang.Integer", new IntRandomData()),
    LONG("Long", "java.lang.Long", new LongRandomData()),
    DOUBLE("Double", "java.lang.Double", new DoubleRandomData()),
    BIG_DECIMAL("BigDecimal", "java.math.BigDecimal", new DoubleRandomData()),
    BIG_INTEGER("BigInteger", "java.math.BigInteger", new LongRandomData()),
    DATE("Date", "java.util.Date", new DateRandomData()),
    LOCAL_DATE_TIME("LocalDateTime", "java.time.LocalDateTime", new LocalDateTimeRandomData()),
    LOCAL_DATE("LocalDate", "java.time.LocalDate", new LocalDateRandomData()),
    LOCAL_TIME("LocalTime", "java.time.LocalTime", new LocalTimeRandomData());
    private String type;
    private String allName;
    private RandomData randomData;
}
